package com.spring.hotel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spring.hotel.entity.Checkin;
import com.spring.hotel.entity.CheckinRoomDTO;
import com.spring.hotel.entity.CheckinStateDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CheckinMapper extends BaseMapper<Checkin> {

    List<CheckinRoomDTO> getList(Integer id);

    CheckinStateDTO getState(Integer userid);

    int updateByUserId(@Param("userid") String userid,@Param("time") String time);

    int delete(String userid);
}
